package com.baiwei.vpnapi.dao;

import com.baiwei.vpnapi.entity.VpnMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: vpnapi
 * @description: 消息dao
 * @author: Mr. Stone
 * @create: 2020-03-16 15:18
 **/
@Mapper
public interface VpnMessageMapper extends BaseMapper<VpnMessage> {
    @Select("select * from push_msg where status = 1 order by update_time DESC limit ${pageSize} offset ${pageNo * pageSize}")
    List<VpnMessage> getMessage(Integer pageNo, Integer pageSize);
}
